using System;

namespace SharedKernel.Infrastructure.Redis
{
    /// <summary>
    /// Redis配置选项
    /// </summary>
    public class RedisOptions
    {
        /// <summary>
        /// Redis连接字符串
        /// </summary>
        public string ConnectionString { get; set; } = "localhost:6379";

        /// <summary>
        /// 连接超时时间（毫秒）
        /// </summary>
        public int ConnectTimeout { get; set; } = 5000;

        /// <summary>
        /// 同步超时时间（毫秒）
        /// </summary>
        public int SyncTimeout { get; set; } = 5000;

        /// <summary>
        /// 默认数据库
        /// </summary>
        public int DefaultDatabase { get; set; } = 0;

        /// <summary>
        /// 是否启用SSL
        /// </summary>
        public bool Ssl { get; set; } = false;
        /// <summary>
        /// 密码
        /// </summary>
        public string Password { get; set; } = "";

    }
}